package com.study.testSSMPlus.entity;

import java.io.Serializable;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.study.testSSMPlus.enumUtils.StatusEnum;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuyu
 * @since 2019-12-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Student implements Serializable {

    private static final long serialVersionUID=1L;

    //设置自增主键
    @TableId(type = IdType.AUTO)
    private Integer id;

    //查询时，若设置了值，使用like匹配
    @TableField(condition = SqlCondition.LIKE)
    private String name;

    private LocalDate birthday;

    private String sex;
    
//    @TableLogic(value = "1", delval = "0")
    private StatusEnum status;


}
